//
//  Comment.m
//  fGeekApp
//
//  Created by Administrator on 15/3/7.
//  Copyright (c) 2015年 cwx. All rights reserved.
//

#import "Comment.h"

@implementation Comment

-(Comment *)initCommentInstanceByDict:(NSDictionary *)dict{
    
    if (self = [super init]) {
        
        self.commentID = [[dict valueForKey:@"comment_id"] integerValue];
        self.goodsID = [[dict valueForKey:@"goods_id"] integerValue];
        self.userID = [[dict valueForKey:@"user_id"] integerValue];
        self.commentBody = [dict valueForKey:@"comment_content"];
        self.commentTime = [[dict valueForKey:@"comment_time"] integerValue];
        self.userName = [dict valueForKey:@"user_name"];
    }
    return self;
}

+(Comment *)getCommentInstanceByDict:(NSDictionary *)dict{
    return [[self alloc]initCommentInstanceByDict:dict];
}

@end
